<?php
defined('_JEXEC') or die('Restricted access');
JToolBarHelper::title(JText::_('COM_JHTRAQ_PROPERTIES_LIST'), 'generic.png');
JToolBarHelper::addNewX();
JToolBarHelper::editListX();
JToolBarHelper::deleteList();
//JToolBarHelper::preferences('com_jhtraq');

?>

<form action="index.php?option=com_jhtraq&view=releases" method="post" name="adminForm">
  <input type="hidden" name="task" value="index" />
  <input type="hidden" name="boxchecked" value="0" />
  <table class="adminlist" cellpadding="1">
	<thead>
	  <tr>
		<th width="10"><input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($this->releases); ?>);" /></th>
		<th><?php echo JText::_('COM_JHTRAQ_PROPERTY_NAME');?></th>
		<th><?php echo JText::_('COM_JHTRAQ_PROPERTY_TYPE')?></th>
		<th><?php echo JText::_('COM_JHTRAQ_PROPERTY_PROJECT');?></th>
	  </tr>
	</thead>
	<tfoot>
	  <tr>
		<td colspan="5">
		  <?php echo $this->pagination->getListFooter(); ?>
		</td>
	  </tr>
	</tfoot>
	<tbody>
	<?php
	$r = 0;
	$i = 0;
	foreach($this->properties as $property) {
	?>
	  <tr class="row<?php echo $r;?>">
		<td><?php echo JHTML::_('grid.id', $i, $property['id'] ); ?></td>
		<td><?php echo $property->name;?></td>
		<td><?php echo $property->type;?></td>
		<td><?php echo $property->projects;?></td>
	  </tr>
	<?php
	  $r = 1-$r;
	  $i++;
	}
	?>
	</tbody>
  </table>
</form>
